﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XinYi.CrookedShowMode;
using XinYi.CrookedTopShow.DAL;

namespace XinYi.CrookedTopShow.BLL
{
    public class RegisterService
    {
        //实例化
        RegisterRepository register = new RegisterRepository();
        #region 添加用户
        public int AddUserInfo(UserInfo userInfo)
        {
            return register.AddUserInfo(userInfo);
        }
        #endregion

        #region 查询用户名是否存在
        public int SelUserName(UserInfo userInfo)
        {
            return register.SelUserName(userInfo);
        }
        #endregion

        #region 查询电话号码是否存在
        public int SelUserPhone(UserInfo userInfo)
        {
            return register.SelUserPhone(userInfo);
        } 
        #endregion
    }
}
